package cn.yangyanzhao.dubbo.server.provider;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 如果不使用zookeeper，使用该类作为服务启动类
 * @author adair
 *
 */
public class BootStrap {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext content = null;
		try {
			content = new ClassPathXmlApplicationContext("dubbo-server.xml");
			content.start();
			System.in.read();
		}catch(IOException e) {
			e.printStackTrace();
		}finally {
			content.close();
		}
	}
}
